/**
*附件管理
*/
import request from '@/utils/request'
// 列表
export function fetchList(query) {
  return request({
    url: '/admin/manager/index',
    method: 'post',
    data: query
  })
}

// 添加
export function add(params) {
  return request({
    url: '/admin/manager/add',
    method: 'post',
    data: params
  })
}
// 获取当前行信息
export function rows(uuid) {
  return request({
    url: '/admin/manager/edit',
    method: 'get',
    params: {
      uuid
    }
  })
}
// 编辑
export function edit(uuid, groupid,
  username,
  password,
  mobile,
  realname,
  nickname,
  status,
  email,
  face) {
  return request({
    url: '/admin/manager/edit',
    method: 'post',
    data: {
      uuid,
      groupid,
      username,
      password,
      mobile,
      realname,
      nickname,
      status,
      email,
      face
    }
  })
}

// 删除
export function del(uuid) {
  return request({
    url: '/admin/manager/del',
    method: 'get',
    params: {
      uuids: uuid
    }
  })
}
